package com.share.module.business.stock.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.module.business.stock.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 股票表 Mapper 接口
 * </p>
 *
 * @author system
 * @since 2025-11-02
 */
@Mapper
public interface StockDAO extends BaseMapper<Stock> {

    /**
     * 根据股票代码查询股票名称
     *
     * @param codes 股票代码
     * @return 股票名称
     */
    List<Stock> findCodeNameByCodes(@Param("codes") List<String> codes);
}
